﻿using System;
using System.Net;

namespace Airport
{
    public class PlaneType
    {

        private int _planeTypeId;
        private string _typeName;
        private int _maxWeight;
        private int _length;
        private int _wingspan;

        public PlaneType()
            : this(-1, "", -1, -1, -1)
        { }

        public PlaneType(int inPlaneTypeId, string inTypeName, int inMaxWeight, int inLength, int inWingspan)
        {
            _planeTypeId = inPlaneTypeId;
            _typeName = inTypeName;
            _maxWeight = inMaxWeight;
            _length = inLength;
            _wingspan = inWingspan;
        }

        public int planeTypeId
        {
            get
            {
                return _planeTypeId;
            }

            set
            {
                if (_planeTypeId != value)
                {
                    _planeTypeId = value;
                }
            }
        }

        public string typeName
        {
            get
            {
                return _typeName;
            }

            set
            {
                if (_typeName != value)
                {
                    _typeName = value;
                }
            }
        }

        public int maxWeight
        {
            get
            {
                return _maxWeight;
            }

            set
            {
                if (_maxWeight != value)
                {
                    _maxWeight = value;
                }
            }
        }

        public int length
        {
            get
            {
                return _length;
            }

            set
            {
                if (_length != value)
                {
                    _length = value;
                }
            }
        }

        public int wingspan
        {
            get
            {
                return _wingspan;
            }

            set
            {
                if (_wingspan != value)
                {
                    _wingspan = value;
                }
            }
        }
    }
}
